home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
os2
/
epmgcc30.zip
/
GCC.E
< prev
next >
Wrap
Text File
|
1996-07-06
|
34KB
|
946 lines
/*
╔══════════════════════════════════════════════════════════════════════════════╗
║ What's it called: EPMGCC V3.00 ║
║ ║
║ What does it do: The E source code for the GCC-Interface for EPM. ║
║ This file contains the menu definitions and procedures. ║
║ ║
║ Who and When: B. Bablok 12/93 - 07/96 ║
║ ║
╚══════════════════════════════════════════════════════════════════════════════╝
*/
TRYINCLUDE 'gccenv.e'
TRYINCLUDE 'gccconst.e'
/*
┌──────────────────────────────────────────────────────────────────────────────┐
│ DEFINIT: Initialize EPMGCC variables and post menu build │
└──────────────────────────────────────────────────────────────────────────────┘
*/
DEFINIT
UNIVERSAL gcc_project, -- project name
gcc_project_file, -- make file name
gcc_sel_projects, -- previously selected projects
gcc_d_comp_options, -- compile options (debug)
gcc_p_comp_options, -- compile options (production)
gcc_d_make_options, -- make options (debug)
gcc_p_make_options, -- make options (production)
gcc_error_file, -- latest error-file
gcc_error_file_id, -- ID of latest error-file
gcc_line2index, -- ID of array
gcc_index2err, -- ID of array
gcc_error_index, -- index of current error
gcc_debug, -- debug mode
gcc_autosave, -- auto-save mode
gcc_verbose, -- verbose mode
gcc_remove, -- .err-remove mode
gcc_runtime_arguments, -- runtime arguments
gcc_debug_arguments, -- runtime arguments for debugger
gcc_edit_cmd, -- command to start makefile edit
gcc_compile_cmd, -- command to start compiler
gcc_build_cmd, -- command to start make
gcc_debug_cmd, -- command to start debug
gcc_translate, -- translate \ to / in filenames
gcc_parser_mod, -- current error-parser module
gcc_save_settings -- save settings to epm.ini
UNIVERSAL app_hini
gcc_project = ''
gcc_sel_projects = QUERYPROFILE(app_hini,'GCC','GCC_SEL_PROJECTS')
gcc_project_file = ''
gcc_error_file = ''
gcc_error_file_id = ''
gcc_line2index = ''
gcc_index2err = ''
gcc_error_index = 0
gcc_save_settings = QUERYPROFILE(app_hini,'GCC','GCC_SETTINGS_MODE')
if gcc_save_settings = 1 then -- settings were saved the last time
gcc_debug = QUERYPROFILE(app_hini,'GCC','GCC_DEBUG_MODE')
gcc_autosave = QUERYPROFILE(app_hini,'GCC','GCC_AUTOSAVE_FILE')
gcc_verbose = QUERYPROFILE(app_hini,'GCC','GCC_VERBOSE_MODE')
gcc_remove = QUERYPROFILE(app_hini,'GCC','GCC_REMOVE_MODE')
gcc_d_comp_options = QUERYPROFILE(app_hini,'GCC','GCC_D_COMPILE_OPTIONS')
gcc_p_comp_options = QUERYPROFILE(app_hini,'GCC','GCC_P_COMPILE_OPTIONS')
gcc_d_make_options = QUERYPROFILE(app_hini,'GCC','GCC_D_BUILD_OPTIONS')
gcc_p_make_options = QUERYPROFILE(app_hini,'GCC','GCC_P_BUILD_OPTIONS')
gcc_edit_cmd = QUERYPROFILE(app_hini,'GCC','GCC_EDIT_COMMAND')
gcc_compile_cmd = QUERYPROFILE(app_hini,'GCC','GCC_COMP_COMMAND')
gcc_build_cmd = QUERYPROFILE(app_hini,'GCC','GCC_BUILD_COMMAND')
gcc_debug_cmd = QUERYPROFILE(app_hini,'GCC','GCC_DEBUG_COMMAND')
gcc_translate = QUERYPROFILE(app_hini,'GCC','GCC_WANT_TRANSLATE')
gcc_parser_mod = QUERYPROFILE(app_hini,'GCC','GCC_PARSER_MODULE')
gcc_runtime_arguments = QUERYPROFILE(app_hini,'GCC','GCC_RT_ARGS')
gcc_debug_arguments = QUERYPROFILE(app_hini,'GCC','GCC_DB_ARGS')
else
gcc_debug = GCC_DEBUG_MODE
gcc_autosave = GCC_AUTOSAVE_FILE
gcc_verbose = GCC_VERBOSE_MODE
gcc_remove = GCC_REMOVE_MODE
gcc_save_settings = GCC_SETTINGS_MODE
gcc_d_comp_options = GCC_D_COMPILE_OPTIONS
gcc_p_comp_options = GCC_P_COMPILE_OPTIONS
gcc_d_make_options = GCC_D_BUILD_OPTIONS
gcc_p_make_options = GCC_P_BUILD_OPTIONS
gcc_edit_cmd = GCC_EDIT_COMMAND
gcc_compile_cmd = GCC_COMP_COMMAND
gcc_build_cmd = GCC_BUILD_COMMAND
gcc_debug_cmd = GCC_DEBUG_COMMAND
gcc_translate = GCC_WANT_TRANSLATE
gcc_parser_mod = GCC_PARSER_MODULE
gcc_runtime_arguments = ''
gcc_debug_arguments = ''
endif
'PostMe BuildGCCMenu'
'PostMe LINK' gcc_parser_mod
'PostMe SAYERROR Current parser module:' gcc_parser_mod
/*
┌──────────────────────────────────────────────────────────────────────────────┐
│ DEFEXIT: Save EPMGCC variables if necessary │
└──────────────────────────────────────────────────────────────────────────────┘
*/
DEFEXIT
UNIVERSAL gcc_sel_projects, -- previously selected projects
gcc_d_comp_options, -- compile options (debug)
gcc_p_comp_options, -- compile options (production)
gcc_d_make_options, -- make options (debug)
gcc_p_make_options, -- make options (production)
gcc_debug, -- debug mode
gcc_autosave, -- auto-save mode
gcc_verbose, -- verbose mode
gcc_remove, -- .err-remove mode
gcc_runtime_arguments, -- runtime arguments
gcc_debug_arguments, -- runtime arguments for debugger
gcc_edit_cmd, -- command to start makefile edit
gcc_compile_cmd, -- command to start compiler
gcc_build_cmd, -- command to start make
gcc_debug_cmd, -- command to start debug
gcc_translate, -- translate \ to / in filenames
gcc_parser_mod, -- current error-parser module
gcc_save_settings -- save settings to epm.ini
UNIVERSAL app_hini
CALL SETPROFILE(app_hini,'GCC','GCC_SEL_PROJECTS',gcc_sel_projects)
CALL SETPROFILE(app_hini,'GCC','GCC_SETTINGS_MODE',gcc_save_settings)
if gcc_save_settings = 1 then
CALL SETPROFILE(app_hini,'GCC','GCC_DEBUG_MODE',gcc_debug)
CALL SETPROFILE(app_hini,'GCC','GCC_AUTOSAVE_FILE',gcc_autosave)
CALL SETPROFILE(app_hini,'GCC','GCC_VERBOSE_MODE',gcc_verbose)
CALL SETPROFILE(app_hini,'GCC','GCC_REMOVE_MODE',gcc_remove)
CALL SETPROFILE(app_hini,'GCC','GCC_D_COMPILE_OPTIONS',gcc_d_comp_options)
CALL SETPROFILE(app_hini,'GCC','GCC_P_COMPILE_OPTIONS',gcc_p_comp_options)
CALL SETPROFILE(app_hini,'GCC','GCC_D_BUILD_OPTIONS',gcc_d_make_options)
CALL SETPROFILE(app_hini,'GCC','GCC_P_BUILD_OPTIONS',gcc_p_make_options)
CALL SETPROFILE(app_hini,'GCC','GCC_EDIT_COMMAND',gcc_edit_cmd)
CALL SETPROFILE(app_hini,'GCC','GCC_COMP_COMMAND',gcc_compile_cmd)
CALL SETPROFILE(app_hini,'GCC','GCC_BUILD_COMMAND',gcc_build_cmd)
CALL SETPROFILE(app_hini,'GCC','GCC_DEBUG_COMMAND',gcc_debug_cmd)
CALL SETPROFILE(app_hini,'GCC','GCC_WANT_TRANSLATE',gcc_translate)
CALL SETPROFILE(app_hini,'GCC','GCC_PARSER_MODULE',gcc_parser_mod)
CALL SETPROFILE(app_hini,'GCC','GCC_RT_ARGS',gcc_runtime_a